HTML <col> tag Supported Browsers
- Google Chrome 1 and above
- Microsoft Edge 12 and above
- Mozilla 1 and above
- Apple 4 and above
- Opera 15 and above
HTML Tag
HTML <col> tag defines attributes for table columns within the <colgroup> element, allowing styling and formatting of columns, such as width, alignment, and background color. This tag does not contain closing tags.
Features of HTML <col> tag
which are described below:
- Column Properties allows setting visual aspects (like background color, width, and alignment) for specific columns.
- Grouped within
<colgroup>, us
ually nested within the<colgroup>
, enabling multiple columns to be collectively defined. - Attributes specified in the
<col>
can be applied to multiple columns at once, simplifying the table’s look.
HTML <col> tag Syntax
<col attribute = "value">
Contact Us